package com.plian.system.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @author: gangan
 * @create: 2022-01-10 16:23
 */
@Data
@TableName("bt_baseinfo")
@Api(value = "字典", tags = "字典")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "基础数据编码")
    private String code;

    @ApiModelProperty(value = "基础数据名称")
    private String name;

    @ApiModelProperty(value = "是否为父节点")
    private Integer isParent;

    @TableField(value = "ORGCODE")
    @ApiModelProperty(value = "编码")
    private String orgCode;

    @TableField(value = "REAMARK")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "'行业编号'")
    private String valIndustryCode;

    @ApiModelProperty(value = "父级CODE")
    private String parentId;

    @ApiModelProperty(value = "权限")
    private String yesOrNo;

    @TableField(value = "CREATETIME")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @TableField(value = "CREATEUSER")
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @TableField(value = "EDITTIME")
    @ApiModelProperty(value = "最后编辑时间")
    private Date editTime;

    @TableField(value = "EDITUSER")
    @ApiModelProperty(value = "最后编辑人")
    private String editUser;

    @ApiModelProperty(value = "'乐观锁字段'")
    private Integer tsVersion;

    @TableField(value = "SORTCODE")
    @ApiModelProperty(value = "'排序码'")
    private String sortCode;

}
